#include "test_aspect_ratio.h"
#include <QHBoxLayout>
#include "AdvancedRatioWidget.h"

test_aspect_ratio::test_aspect_ratio(QWidget *parent)
    : QWidget(parent)
{
    ui.setupUi(this);

	auto *w = new AdvancedRatioWidget(16 / (double) 9,
		AdvancedRatioWidget::RatioConstraint::WidthBased,
		this);
	auto *layout = new QHBoxLayout();
	layout->addWidget(w);
	setLayout(layout);

	QString qss = 
R"(
  QWidget {
    background: gray;
  }
  FixedRatioWidget {
    background: #BBDEFB;
  }
  AdvancedRatioWidget {
    background: #BBDEFB;
  }
)";
	setStyleSheet(qss);
}
